from rest_framework import serializers
from rest_framework_mongoengine import serializers as mongoserializers

from conference.models import Statistics, Meetings, Subjects


class StatisticsSerializer(mongoserializers.DynamicDocumentSerializer):
    id = serializers.CharField()

    class Meta:
        model = Statistics
        fields = '__all__'



class MeetingsSerializer(mongoserializers.DynamicDocumentSerializer):
    id = serializers.CharField()

    class Meta:
        model = Meetings
        fields = '__all__'

class SubjectsSerializer(mongoserializers.DynamicDocumentSerializer):
    id = serializers.CharField()

    class Meta:
        model = Subjects
        fields = '__all__'
